import React from 'react'

const Component = () =>
{
    let rid = React.params('rid')?? 0

    let [room, SetRoom] = useState([])

    React.useEffect(() => {
        RoomInfo()
    }, [])

    const RoomInfo = async () =>
    {
        var result = await React.request.post('/room/info', {
            rid: rid,
        })

        if(result.code == 0)
        {
            React.toast(result.msg, null, 'fail')
            return false
        }
        SetRoom(result.data)

        console.log(result)
    }
    return (
        <>
            <React.UI.Image src={room.thumb_text} width={'100%'} height={'40vh'} fit='cover' />

            
        </>
    )
}

export default Component